package com.airlines.crewassignment.service.addcrew.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.airlines.base.service.base.impl.BaseServiceImpl;
import com.airlines.crewassignment.dao.addcrew.AddCrewMapper;
import com.airlines.crewassignment.domain.DateTimeRange;
import com.airlines.crewassignment.entity.addcrew.AddCrew;
import com.airlines.crewassignment.service.addcrew.AddCrewService;

/**
 * @author xxxx
 * @date 2018年4月28日 
 * @description
 */
@Service
public class AddCrewServiceImpl extends BaseServiceImpl<AddCrew, Integer> implements AddCrewService {
	@Autowired
	private AddCrewMapper addCrewMapper;
	@Autowired
	@Override
	public void setBaseMapper() {
		super.setBaseMapper(addCrewMapper);
	}

	@Override
	public List<AddCrew> listAddCrew(DateTimeRange flightDateRange, DateTimeRange stRange, String moduleFlag,
			String workcode) {
		return addCrewMapper.listAddCrew(flightDateRange, stRange, moduleFlag, workcode);
	}

}
